package com.yx.shop.dao;

import com.yx.shop.entitly.Cart;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

/**
 * @Classname CartDao
 * @Description TODO:
 * @Date 2021/05/07 23:11
 * @Created by yx
 */
public interface CartDao {
    Cart hasCart(Integer uid, Integer pid);

    int updateCart(Cart cart);

    void insertCart(Cart cart);

    List<Cart> getAllCartByUid(Integer uid) throws InvocationTargetException, IllegalAccessException;

    int clearCart(int uid);

    int deleteCart(Integer pid, int uid);
}
